package com.service.manage.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mapper.manage.UserRegisterDao;
import com.po.UserRegister;
import com.service.manage.UserRegisterService;

@Service
public class UserRegisterServiceImp implements UserRegisterService {
	@Resource(name = "userRegisterDao")
	private UserRegisterDao userRegisterDao;

	@Override
	public int addUserRegister(UserRegister userRegister) {
		int i = userRegisterDao.addUserRegister(userRegister);
		return i;
	}

	@Override
	public int deleteUserRegister(String userid) {
		int i = userRegisterDao.deleteUserRegister(userid);
		return i;
	}

	@Override
	public int deleteUserRegisterList(String[] userid) {
		int i = userRegisterDao.deleteUserRegisterList(userid);
		return i;
	}

	@Override
	public int updateUserRegister(UserRegister userRegister) {
		int i = userRegisterDao.updateUserRegister(userRegister);
		return i;
	}

	@Override
	public UserRegister addUserRegisterIsOk(UserRegister userRegister) {
		UserRegister userRegisterr = userRegisterDao.getUserRegisterListByID(userRegister);
		return userRegisterr;		
	}

}
